RemoveLast Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Removes the last item in the set. This is also the largest item in the set.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public T RemoveLast()
Visual Basic (Declaration)
Public Function RemoveLast As T
Visual C++
public:
T RemoveLast ()

Return Value

The item that was removed, which was the largest item in the set.

Remarks

RemoveLast() takes time O(log N), where N is the number of items in the set.

Exceptions

ExceptionCondition
System..::InvalidOperationExceptionThe set is empty.

See Also